<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@page pageEncoding="utf-8" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>add</title>
    <link rel="stylesheet" href="/resources/CSS/main.css" type="text/css">
</head>
<body>
    当前登录用户:<span class="loginuser">${loginUser.loginName}</span><br>
    <%--此时没有写action，直接回提交给/add    enctype="multipart/form-data"表示有图片上传--%>
    <sf:form method="post" modelAttribute="user" enctype="multipart/form-data">
        UserName:<sf:input path="userName"/><sf:errors path="userName"/><br/>
        Age:<sf:input path="userAge"/><sf:errors path="userAge"/><br/>
        <input type="file" name="attachs"/><br/>
        <input type="file" name="attachs"/><br/>
        <input type="file" name="attachs"/><br/>
        <input type="submit" value="提交"/>
    </sf:form>

</body>
</html>